using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using BO.Admin;

namespace Admin.Controls.News
{
    public partial class ListNews : System.Web.UI.UserControl
    {
        public string Return = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            Return = Request.Url.PathAndQuery;
            BindData();
        }

        private void BindData()
        {
            rptRecentNews.DataSource = null;
            rptRecentNews.DataSource = News_Helper.GetTopAll(9999999);
            rptRecentNews.DataBind();
        }
    }
}